
import os
from whiff import tester
from runtest import application

testapp = application()
#captureTestapp = tester.CaptureTestCase(testapp, "./captures/capture.txt", True)
suite = tester.TestSuiteDirectory(testapp, "./testcases")

if __name__=="__main__":
    print "running tests in ./testcases and storing diagnostics to ./diagnostics"
    diagnosticdir = "./diagnostics"
    if not os.path.exists(diagnosticdir):
        os.mkdir(diagnosticdir)
    suite.run_all(diagnosticdir)

                    
